﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" Inherits="Nivdal.Sponsor" Title="" StylesheetTheme="SkinFile" Codebehind="Sponsor.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="CountryLabel" runat="server" Text="Sponsor page" CssClass="white_title"></asp:Label>
    </div>
    <div class="padding5">
        <asp:FormView ID="SponsorFormView" runat="server" DataSourceID="SqlDataSource1">
            <ItemTemplate>
                <table style="border-style: solid; border-spacing: 15px" width="350px">
                    <tr>
                        <td>
                            <asp:Label ID="CurrentContractsTitleLabel" runat="server" Text="Current Contracts:"
                                SkinID="InfoLabel"></asp:Label>
                            <asp:Label ID="CurrentContractsLabel" runat="server" Text='<%# Eval("CurrentContracts ") %>'
                                SkinID="SmallHeaderLabel" />
                            <br />
                            <br />
                            <asp:Label ID="CurrentSuggestionsTitleLabel" runat="server" Text="Current Suggestions:"
                                SkinID="InfoLabel"></asp:Label>
                            <asp:Label ID="CurrentSuggestionsLabel" runat="server" Text='<%# Eval("CurrentSuggestions") %>'
                                SkinID="SmallHeaderLabel" />
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:FormView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_GetSponsorDetails" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
        <br />
        <br />
        <asp:Label ID="ErrorLabel" runat="server" Text=""></asp:Label>
        <table style="width: 100%;">
            <tr>
                <td>
                    <asp:TextBox ID="SponsorNameTextBox" runat="server" MaxLength="256"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="ChangeNameButton" runat="server" Text="Change Name" OnClientClick='if (!confirm("Are you sure you want to change the sponser name?")) { return false; }'
                        OnClick="ChangeNameButton_Click" />
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="ImageFileNameTextBox" runat="server" MaxLength="256" Width="160px"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="ImageFileNameButton" runat="server" Text="Change Image File Name"
                        OnClientClick='if (!confirm("Are you sure you want to change Image File name?")) { return false; }'
                        OnClick="ChangeImageFileNameButton_Click" />
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="LinkTextBox" runat="server" MaxLength="256" Width="160px"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="Change Link" OnClientClick='if (!confirm("Are you sure you want to change the sponser Link?")) { return false; }'
                        OnClick="ChangeLinkButton_Click" />
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:TextBox ID="SponsorContactsLimitTextBox" runat="server" MaxLength="12" Width="94px"></asp:TextBox>
                </td>
                <td>
                    <asp:Button ID="ContractsLimitButton" runat="server" Text="Change Contacts Limit"
                        ValidationGroup="ContactsLimits" OnClientClick='if (!confirm("Are you sure you want to change the sponser Contacts Limit?")) { return false; }'
                        OnClick="ChangeContractsLimitButton_Click" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center">
                    <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1" ControlToValidate="SponsorContactsLimitTextBox"
                        ErrorMessage="Illigal value" ValidationExpression="^[0-9]{1,12}$" ValidationGroup="ContactsLimits"></asp:RegularExpressionValidator>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:DropDownList ID="PriorityDropDownList" runat="server">
                        <asp:ListItem>0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>6</asp:ListItem>
                        <asp:ListItem>7</asp:ListItem>
                        <asp:ListItem>8</asp:ListItem>
                        <asp:ListItem>9</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="Button2" runat="server" Text="Change Priority" OnClientClick='if (!confirm("Are you sure you want to change the sponser priority?")) { return false; }'
                        OnClick="ChangepriorityButton_Click" />
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
        <asp:Label ID="FeedbackMessageLabel" runat="server" Text="" SkinID="GreenSmallHeaderLabel"></asp:Label>
        <br />
        <br />
        <asp:LinkButton ID="SponsorsSummaryLinkButton" runat="server" SkinID="TitleLink"
            PostBackUrl="~/SponsorsSummary.aspx">Sponsors Summary page</asp:LinkButton>
        
    </div>
    </div>
</asp:Content>
